package com.baoxin.controller;

import com.baoxin.domain.User;
import com.baoxin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: Rose
 * @Date: 2021/3/23 17:32
 * @version: 1.0.0
 */
@RestController
@RequestMapping("/user")
public class UserController {


    @Autowired
    private UserService userService ;



    @GetMapping(value = "/findAll")
    public List<User> findAllUser(){
        List<User> userList = userService.findAllUsers();
        return userList;
    }

























}
